﻿using Newtonsoft.Json;

namespace JwtBearerDemo.Model;

/// <summary>
/// 用户登录信息
/// </summary>
public class UserInfo {
    public string ID { get; set; }
    public string Name { get; set; }
    public string Group { get; set; }
    public string Organization { get; set; }
    public string Role { get; set; }
    public string Surname { get; set; }
    public string Phone { get; set; }
    public string Gender { get; set; }
    public string Email { get; set; }

    public static UserInfo Default () {
        return new UserInfo { ID = "10001", Group = "500", Name = "admin", Role = "Admin", Surname = "Administrator", Phone = "18200100001", Gender = "Male", Email = "abc@gmail.com" };
    }

    public override string ToString () {
        return JsonConvert.SerializeObject(this);
    }
}